window.addEventListener('message', function (event) {
  event.source.postMessage({ body: { 
    offsetWidth: this.document.body.offsetWidth, 
    offsetHeight: this.document.body.offsetHeight, 
    height: this.document.body.height,
    width: this.document.body.width,
    scrollHeight: this.document.body.scrollHeight,
    scrollWidth: this.document.body.scrollWidth,
    clientHeight: this.document.body.clientHeight,
    clientWidth: this.document.body.scrollWidth,
  } }, '*')
}, false);
